import http from "../utils/request"

//获取列表

export const getStuListApi = (page = 1, count = 10, classes = "") => http.get('/students/getstulist', {
    params: {
        page,
        count,
        class: classes
    }
})

//搜索

export const searchStuListApi = (key = "", count = 10, page = 1) => http.get("/students/searchstu", {
    params: {
        key,
        count,
        page
    }
})

//增加信息

export const addStuApi = param => http.post("/students/addstu", param);

//删除信息

export const delStuApi = sId => http.get('/students/delstu', {
    params: {
        sId
    }
})

//修改信息

export const updateStuApi = param => http.post('/students/updatestu', param)

//01